package cn.tsmchina.one.util;

/**
 * 常量
 * @author  YUE
 * @date 2013-9-2 下午7:35:26
 */
public final class C
{
	public static final int DEL_YES = 1;
	public static final int DEL_NO = 0;
	
	public static double SCORE_CASH_EXCHANGE_RATIO = 0.1d;
	public static int CASH_SCORE_EXCHANGE_RATIO = 1;
	
	/**
	 * 分页
	 * @author  YUE
	 * @date 2013-9-11 上午9:52:23
	 */
	public static final class Paging
	{
		public static final int SIZE = 10;
		public static final int FRONT_PAGE_SIZE = 5;
		public static final int RECOMMEND_PAGE_SIZE = SIZE;//推荐列表
		public static final int RED_PAGE_SIZE = SIZE;//红商品列表
	}
	
	/**
	 * 消息
	 * @author  YUE
	 * @date 2013-9-4 上午11:13:37
	 */
	public static final class Msg
	{
		//成功
		public static final String OK = "ok";
		//错误
		public static final String ERROR = "error";
	}
	
	/**
	 * 支付方式
	 * @author Administrator
	 */
	public static final class PayType
	{
		//在线支付
		public static final int online = 1;
		//货到付款
		public static final int offline = 2;
	}
	
	/**
	 * 支付状态
	 * @author Administrator
	 */
	public static final class PayStatus
	{
		//已支付
		public static final int yes = 1;
		//未支付
		public static final int no = 0;
	}
	
	/**
	 * 配送状态
	 * @author Administrator
	 */
	public static final class SendStatus
	{
		//未配送
		public static final int no = 1;
		//配送中
		public static final int go = 2;
		//已送达
		public static final int yes = 3;
	}
	
	/**
	 * 活动状态
	 * @author  YUE
	 * @date 2013-9-5 上午11:27:56
	 */
	public static final class ActivityState
	{
		//活动未开始
		public static final int NO_START = 1;
		
		//活动进行中
		public static final int STRTING = 2;
		
		//活动已结束
		public static final int END = 3;
		
		//活动已取消
		public static final int CANCEL = 4;
	}
	
	/**
	 * 配置项
	 */
	public static final class ConfigKeys
	{
		//配置首页活动图片
		public static final String FRONT_ACTIVITY = "frontActivity";
		//配置首页店铺图片
		public static final String FRONT_RESTAURANT = "frontRestaurant";
		//配置首页会员图片
		public static final String FRONT_MEMBER = "frontMember";
		//配置首页标题
		public static final String FRONT_TITLE = "frontTitle";
		//配置获取积分的百分比
		public static final String CREDITS = "credits";
		//配置菜单插件
		public static final String SHOW_MENU_PLUGIN = "showMenuPlugin";
		//配置标题后缀
//		public static final String TITLE_SUFFIX = "titleSuffix";
		//配置一键拨号
		public static final String YJBH = "yjbh";
		//配置一键导航
		public static final String YJDH = "yjdh";
		
		//配置支付参数
		public static final String PAY = "pay";
		//配置微信支付
		public static final String WC_PAY = "wcpay";
	}
	
	/**
	 * 默认配置项
	 */
	public static final class DefaultConfig
	{
		//首页活动默认图片
		public static final String DEFAULT_FRONT_ACTIVITY_IMAGE = "m/images/index2.png";
		
		//首页店铺默认图片
		public static final String DEFAULT_FRONT_RESTAURANT_IMAGE = "m/images/index1.png";
				
		//首页会员默认图片
		public static final String DEFAULT_FRONT_MEMBER_IMAGE = "m/images/index3.png";
		
		//首页默认标题
		public static final String DEFAULT_FRONT_TITLE = "欢迎光临";
		
		//默认获取积分的百分比
		public static final float DEFAULT_CREDITS = 0.1f;
		
		//默认是否显示菜单插件
		public static final boolean DEFAULT_SHOW_MENU_PLUGIN = true;
		
		//默认标题后缀
//		public static final String DEFAULT_TITLE_SUFFIX = "";
		
		//默认一键拨号地址
		public static final String DEFAULT_YJBH = "";
		
		//默认一键导航地址
		public static final String DEFAULT_YJDH = "";
	}
}
